package com.example.pc.videodemo.emq.model.hangUp

import com.example.pc.videodemo.emq.model.EmqConstant
import com.example.pc.videodemo.emq.model.MqttMassgePostBase
import com.example.pc.videodemo.emq.Publisher
import com.example.pc.videodemo.emq.model.call.CallPostBeanBase

data class HangupPublisher(var toString: String) : Publisher() {
    override val emq: EmqConstant.androidToServerEnum
        get() = EmqConstant.androidToServerEnum.hangUp
    override val message: MqttMassgePostBase
        get() {
            val postBean = HangupPostBeanBase()
            postBean.data = CallPostBeanBase.Phone(toString)

            return postBean
        }
}